/* Основные стили проекта. Это стили для темы, которую вы верстаете первой. */

.page {
    background-color: var(--bg-color);
    font-family: var(--main-font, monospace);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 375px;
    gap: 40px;
    width:100%;
    height:100%;
    background-image: var(--bg-img);
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
}

.header {
    position: relative;
    display: grid;
    align-items: center;
    grid-template-rows: 1fr auto 1fr;
    padding: var(--gap);
    height: 100vh;
}

.camera::before {
    position: absolute;
    content: '';
    top: var(--gap);
    right: var(--gap);
    block-size: 25px;
    inline-size: 25px;
    border-inline-end: 1px solid var(--corner-color);
    border-block-start: 1px solid var(--corner-color);
}

.camera::after {
    position: absolute;
    content: '';
    bottom: var(--gap);
    left: var(--gap);
    block-size: 25px;
    inline-size: 25px;
    border-inline-start: 1px solid var(--corner-color);
    border-block-end: 1px solid var(--corner-color);
}

.header__topcorner {
    font-size: 18px;
    font-weight: 400;
    line-height: 25px;
    font-style: normal;
    position: absolute;
    top: var(--gap);
    right: var(--gap);
    color:var(--accent-color);
}

.header__topcorner::after {
    content:'';
    background-color: var(--accent-color);
    display: inline-block;
    margin-inline: 9px;
    inline-size: 9px;
    block-size: 9px;
    margin-block-end: 2px;
    box-shadow: 0 0 4px 2px var(--accent-color);
    border-radius: 50%;
    overflow: hidden;
}

.header__title {
    font-weight: 700;
    line-height: 95.7px;
    font-style: normal;
    position: relative;
    color: var(--title-color);
    text-shadow: 4px 4px 0 var(--shadow-color);
    font-size: clamp(7.25rem, 7.0115rem + 1.0178vw, 7.5rem);
}

.header__text {
    color: var(--subheader-color);
    width:100%;
}

.header__theme-menu-list {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 13px;
}
.header__theme-menu-item {
    line-height: 23.4px;
}

.header__theme-menu-button:hover {
    cursor: pointer;
    border: 1px solid var(--accent-color-alpha40);
    padding-inline: 12px;
    padding-block-end: 4px;
}

.header__theme-menu-button_active {
    outline: 1px solid var(--menu-color);
    pointer-events: none;
}


.header__theme-menu-button {
    font-size: 18px;
    line-height: 18px;
    font-weight: 400;
    font-style: normal;
    display: inline-block;
    background-color: transparent;
    border:0;
    height: 100%;
    color: var(--menu-color);
    padding-inline: 13px;
    text-transform: lowercase;
    padding-block-end: 5px;
}

.header__theme-menu-button:focus {
    outline: none;
}

.header__theme-menu-button:focus-visible {
    border-block-end: 1px solid var(--menu-color);
}

.content {
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding-inline: var(--gap);
}

.card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hard_to_concentrate,
.what_reduces_attention,
.how_to_concentrate {
    display: grid;
    grid-gap: 20px;
}

.advices_in_pictures {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

.section__header {
    color: var(--header-color);
    font-size: 18px;
    line-height: 23.4px;
    font-weight: 700;
    font-style: normal;
}

.title-decor {
    background-color: var(--accent-color);
    font-size: 18px;
    line-height: 23.4px;
    font-weight: 700;
    font-style: normal;
}


.section__list-header {
    color: var(--subheader-color);
    font-weight: 400;
}

.section__subheader {
    color: var(--subheader-color);
    font-weight: 700;
}

.section__text {
    color: var(--text-color);
    font-size: 18px;
    line-height: 23.4px;
    font-weight: 400;
    font-style: normal;
}

.section__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section__list-item {
    display:flex;
    flex-direction: column;
    gap:10px;
}

.section__link {
    text-shadow: 2px 1px 0 var(--link-shadow-color);
    text-decoration: none;
}

.section__link:hover {
    text-decoration: underline;
}

.section__link:focus {
    outline: none;
}
.section__link:focus-visible {
    outline: 1px solid currentColor;
}

.gallery {
    display: grid;
    grid-gap: var(--gap);
}

.gallery__image {
    display: block;
    object-fit: cover;
    width: 100%;
    height: 100%;
}


.footer {
    position: relative;
    display: flex;
    height: 100vh;
    justify-content: center;
    align-items: center;
    padding: var(--gap);
}

.footer__text {
    font-weight: 700;
    line-height: 82.5%;
    color: var(--title-color);
    text-shadow: 2px 2px 0 var(--shadow-color);
    font-size: clamp(7.25rem, 7.0115rem + 1.0178vw, 7.5rem);
    font-style: normal;
}



@media (width >= 768px) {
    :root {
        --gap: 20px;
    }
    .page {
        gap: 60px;
    }
    .content {
        gap: 80px;
    }

    .header {
        grid-template-columns: repeat(2, 1fr);
    }

    .header__theme-menu {
        grid-column: 1/3;
        grid-row: 1/2;
    }
    .header__title {
        grid-row: 2/3;
        grid-column: 1/3;
        left: -20px;
        font-size: clamp(7.5rem, 0.5625rem + 14.4531vw, 9.8125rem);
    }
    .header__text {
        grid-row: 3/4;
        grid-column: 2/3;
     }
    .hard_to_concentrate {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 20px;
    }
    .hard_to_concentrate .section__header {
        grid-column: 1/2;
    }

    .hard_to_concentrate .card {
        grid-column: 2/3;
    }

    .what_reduces_attention {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .what_reduces_attention .section__header,
    .how_to_concentrate .section__header {
        grid-column: 1/2;
    }
    .what_reduces_attention .card {
        grid-column: 1/-1;
    }

    .how_to_concentrate {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 20px;
    }
    .how_to_concentrate .section__header {
        grid-column: 1/2;
        grid-row: 1/3;
    }
    .how_to_concentrate .section__subheader {
        grid-column: 2/3;
    }
    .section__list {
        grid-column: 2/3;
    }
    .advices_in_pictures {
        gap: 20px;
    }
    .gallery {
        grid-template-columns: repeat(3, minmax(196px, 1fr));
        grid-auto-flow: dense;
    }
 
    .horizontal {
        grid-column: span 2;
    }
    .square {
        grid-column: span 1;
        grid-row: span 1;
    }
    .vertical {
        grid-row: span 2;
    }
    .footer__text {
        font-size: clamp(7.5rem, 0.5625rem + 14.4531vw, 9.8125rem);
    }
}

@media (width >= 1024px) {
    .header__title {
        line-height: 129.525px;
    }
    .header__theme-menu {
        grid-column: 1/4;
        grid-row: 1/2;
        place-self: normal;
    }
    .header__theme-menu-list {
        flex-direction: row;
        justify-content: center;

    }
    .header__text {
        place-self: center;
    }

    .hard_to_concentrate {
        grid-template-columns: repeat(3, 1fr);
    }
    .hard_to_concentrate .section__header {
        grid-row: span 2;
    }
    .hard_to_concentrate .card {
        grid-column: span 2;
    }
    .what_reduces_attention {
        grid-template-columns: repeat(3, 1fr);
    }
    .what_reduces_attention .section__header {
        grid-column: 1/2;
    }
    .what_reduces_attention .card {
        grid-row-start: 2;
        grid-column: span 1;
    }
    .how_to_concentrate {
        grid-template-columns: repeat(3, 1fr);
    }
    .how_to_concentrate .section__header {
        grid-column: span 1;
    }
    .how_to_concentrate .section__subheader,
    .how_to_concentrate .section__list {
        grid-column: 2/4;
    }
    .footer {
        line-height: 129.525px;
    }
}